package com.huawei.service.impl;


import com.huawei.dao.ManagerMapper;
import com.huawei.entity.Manager;
import com.huawei.service.ManagerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class ManagerImpl implements ManagerService {
@Resource
    ManagerMapper managerMapper;
    @Override
    public List<Manager> selectAll(Map<String, Object> map) {
        return managerMapper.selectAll(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return managerMapper.count(map);
    }

    @Override
    public int insert(Manager manager) {
        return managerMapper.insert(manager);
    }

    @Override
    public int update(Manager manager) {
        return managerMapper.update(manager);
    }

    @Override
    public int delete(int manager_id) {
        return managerMapper.delete(manager_id);
    }

    @Override
    public Manager getId(String manager_id) {
        return managerMapper.getId(manager_id);
    }


}

